# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: helpers\encryption\openssl.py
__author__ = "Attila Gerendi (Sanyi)"
import hashlib


def openssl_kdf(req, secret, salt):
    prev = b""
    while req > 0:
        h = hashlib.md5()
        h.update(prev + secret + salt)
        prev = h.digest()
        req -= 16
        yield prev
